<template>
  <div class="wrapper">
    <SideBar></SideBar>
    <div class="header-wrapper">
      <Header></Header>
      <div class="content">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script setup>
import SideBar from "../layout/SideBar.vue";
import Header from "../layout/Header.vue";
</script>

<style scoped lang="less">
.wrapper {
  display: flex;
  overflow: hidden;
  .header-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #f5f5fa;
    .content {
      box-sizing: border-box;
      width: calc(100vw - 240px);
      min-width: 1080px;
      margin: 20px;
      padding: 20px;
      border-radius: 5px;
      min-height: calc(90vh - 60px);
      background-color: #fff;
    }
  }
}
</style>